package service;

import util.web.Page;
import dao.IdeaDao;
import entity.Idea;
import entity.IdeaReplay;

public class IdeaService {

	private IdeaDao ideaDao = new IdeaDao();

	public void save(Idea idea) {
		
		ideaDao.save(idea);
	}

	public Page<Idea> findIdeaByProjectidLimit(int nowPageNum, String id) {
		return ideaDao.findIdeaByProjectidLimit(nowPageNum,id);
	}

	public Idea findIdeaById(String id) {
		return ideaDao.findIdeaById(id);
	}

	public void removeById(String id) {
		ideaDao.removeById(id);
		
	}

	
}
